import { TimeStamp } from "@/types/common/common";

export interface AdminUser extends TimeStamp {
    _id: string;
    username: string;
    email: string;
    status: boolean;
    roles: string[];
    remark: string;
    password: string;
    nickname?: string;
    avatar?: string;
}
export interface AdminRole extends TimeStamp {
    _id: string;
    name: string;
    key: string;
    status: boolean;
    permissions: string[];
    remark?: string;
}
export interface AdminPermission extends TimeStamp {
    _id: string;
    name: string;
    key: string;
    type: "menu" | "route" | "action";
    status: boolean;
    remark?: string;
}
